﻿//------------------------------------------------------------------
// System Name:    NRemedy
// Component:      NRemedy
// Create by:      Parker Zhou (parkerz@wicresoft.com)
// Create Date:    2012-04-10
//------------------------------------------------------------------
using System;
using System.Collections.Generic;

namespace Wicresoft.EKA.NRemedy
{
    /// <summary>
    /// 所有Model的基类，定义并实现了属性的OnPropertyChanged，以实现UpdateEntry功能
    /// </summary>
    public class ARBaseForm
    {
        public ARBaseForm()
        {
            ChangedProperties = new HashSet<string>();
        }

        protected virtual void OnPropertyChanged(string propertyName)
        {
            ChangedProperties.Add(propertyName);
        }

        internal HashSet<string> ChangedProperties;

        internal void ClearChange()
        {
            ChangedProperties = null;
            ChangedProperties = new HashSet<string>();
        }

        BMC.ARSystem.FieldValueList ValueList = new BMC.ARSystem.FieldValueList();
       
    }
}
